package com.springboot.demo.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 自定义配置
 *
 * @author supu
 * @create 2018-12-17 16:45
 **/
@Data
@Component
//@ConfigurationProperties
//@PropertySource(value = "classpath:custom.yml", factory = YamlPropertySourceFactory.class)
//@PropertySource(value = "classpath:custom.yml", factory = YamlPropertyLoaderFactory.class, ignoreResourceNotFound = true)
public class CustomConfig {
    @Value("${custom.host}")
    private String customHost;
    @Value("${self.host}")
    private String selfHost;
}
